package com.thememaker.lockstyle.bean.VariableBinders;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * Created by binghui.hang on 2018/2/23.
 * <!—重力传感器-->
 * <SensorBinder type="gravity">
 * <Variable name="" index="0"/>
 * <Variable name="" index="1"/>
 * <Variable name=" index="2"/>
 * </SensorBinder>
 */
@XmlRootElement(name = "Variable")
public class Variable {
    private String name;
    private String index;

    @XmlAttribute(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @XmlAttribute(name = "index")
    public String getIndex() {
        return index;
    }

    public void setIndex(String index) {
        this.index = index;
    }
}
